﻿<!DOCTYPE HTML>
<html>
<head>
<title>权限管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<#include "/views/ftl/base/manager_include.ftl">
</head>
<body style="background:#eef3f7;">
<#include "/views/ftl/base/head.ftl">
<div class="Main">
  <div class="dw">
<#include "/views/ftl/base/menu.ftl">
<#function a><#return "角色列表_List"></#function> 
      <!--右边内容-->
 	<div class="Rightbox fl">
        <!--面包屑-->
        <div class="Bread_crbs clear">
          <div class="Bread_crbs_img fl"></div>
          <div class="Bread_crbs_text fl">
          	<a href="javascript:;">
          		<span>角色列表-></span>
          	</a>
          	<span class="fnt_famy"></span>
          	<a href="javascript:;">
          		<span>修改角色</span>
          	</a>
          </div>
        </div>
        <!--各种表单设置-->
        <form id="post_infor" name="post_infor" action="${basePath}manager/Role_editRole" method="post">
        <div>
<input type="hidden" value="${role.id}" name="roleId">
          <div class="input_name">
            <span>角色名称：</span><input type="name" id="subject" maxlength="250" name="name" placeholder="请输入角色名称" style="width:289px;" value="${role.name}"/>
          </div>
   
          <div class="clear"></div>
          <div class="explain">
            <div class="explain_name">角色描述：</div>
			
            <textarea name="description" id="content">${role.description}</textarea>
          </div>
        </div>
        <div class="button">
          <a href="javascript:savePostInfo();"><input type="button" id="save_button" name="button" value="保存" /></a>
        </div>

        </form>
      </div>
  </div>
</div>

<script type="text/javascript">

//保存帖子信息
function savePostInfo(){
	
	var subject= $('#subject').val();
	if(""== subject){
		alert("角色名称不能为空！");
		return;
	}
	
	 $('#post_infor').submit();
}
</script>
</body>
</html>
